chrome.runtime.onInstalled.addListener(() => {
	chrome.storage.local.get('state').then(res => {
		let text = 'OFF';
		if (res.state) {
			text = 'ON';
		}
		chrome.action.setBadgeText({
			text: text,
		});
	});
});

